<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018-4-28
  Time: 19:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<%

//    int a = 10;

    pageContext.setAttribute("a", 10);

    request.setAttribute("b", 20);

    session.setAttribute("c", 30);

    session.setAttribute("name", "张三");


    application.setAttribute("d", 40);
%>

<p>${sessionScope.aaaa}</p>

<p>name=${sessionScope.name}</p>

<p>a=${pageScope.a}</p>

<p>b=${requestScope.b}</p>

<p>c=${sessionScope.c}</p>

<p>d=${applicationScope.d}</p>

</body>
</html>
